package com.example.pages;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class LoginPage extends AnyPage {

	@FindBy(id = "loginform")
	public WebElement loginform;
	
	@FindBy(id = "username")
	public WebElement userNameField;
	
	@FindBy(name = "password")
	public WebElement passwordField;
	
	@FindBy(name = "submit")
	public WebElement loginButton;
	
	@FindBy(className = "error")
	public WebElement errorMessage;

	public boolean isOnThisPage() {
		return loginform.isDisplayed();
	}
	public boolean ErrorMessageisOnThisPage() {
		return errorMessage.isDisplayed();
	}

}
